home *** CD-ROM | disk | FTP | other *** search
- #ifndef _MCGA
- #define _MCGA
-
-
- #include <dos.h>
-
-
- void graphicon(void)
- {
- union REGS mode;
- mode.x.ax=0x13;
- int86(0x10,&mode,&mode);
- }
-
-
- void graphicoff(void)
- {
- union REGS mode;
- mode.x.ax=0x3;
- int86(0x10,&mode,&mode);
- }
-
-
- void setpalette(unsigned char *palette)
- {
- int loop;
-
- outportb(0x3c8,0);
- for(loop=0;loop<768;loop++) {
- outportb(0x3c9,palette[loop]);
- }
- }
-
-
- #endif
-
-
- // NOERROR / GARGOYLE